/**封装本地储存 的模块 */
// 本地存储数据
export const saveLocalItem = (key, value) => localStorage.setItem(key, value);
// 读取本地储存的数据
export const getLocalItem = key => localStorage.getItem(key);
// 删除本地储存数据
export const delLocalItem = key => localStorage.removeItem(key);
// 清空本地储存的数据
export const clearLocalItem = () => localStorage.clear();

// 会话储存数据
export const saveSessionItem = (key, value) => sessionStorage.setItem(key, value);
// 读取会话储存的数据
export const getSessionItem = key => sessionStorage.getItem(key);
// 删除会话储存数据
export const delSessionItem = key => sessionStorage.removeItem(key);
// 清空会话储存的数据
export const clearSessionItem = () => sessionStorage.clear();